package com.ikun.admin.modules.sys.vo;

import com.ikun.common.tree.TreeNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName PermMenuVo
 * @Description:
 * @CreateDate: 2024/5/30 16:18
 */
@Data
@ApiModel("菜单权限vo")
public class PermMenuVo {

    @ApiModelProperty("菜单权限列表")
    private List<MenuVo> menuList;

    @ApiModelProperty("路由列表")
    private List<MenuVo> routerList;

    @Data
    @ApiModel("菜单权限vo")
    public static class MenuVo extends TreeNode {

        @ApiModelProperty("标题")
        private String title;

        @ApiModelProperty("图标")
        private String icon;

        @ApiModelProperty("排序")
        private Integer sort;

        @ApiModelProperty("权限")
        private List<String> permList;

        @ApiModelProperty("路由")
        private String router;

    }


}
